package br.ufg.inf.espweb.sgca.service.impl;

import br.ufg.inf.espweb.sgca.dao.GenericDao;
import br.ufg.inf.espweb.sgca.dao.TurmaDao;
import br.ufg.inf.espweb.sgca.model.Turma;
import br.ufg.inf.espweb.sgca.service.TurmaService;
import java.io.BufferedReader;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author diCastro
 */
@Service
@Scope("prototype")
@Transactional(propagation = Propagation.REQUIRED)
public class TurmaServiceImpl extends GenericServiceImpl<Turma> implements TurmaService{
    
    @Autowired
    private TurmaDao turmaDao;
    
    @Override
    protected GenericDao<Turma> getDao() {
        return turmaDao;
    }

    @Override
    public Map<String, String> importarTurmas(BufferedReader arquivoCSV) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
